package com.yang.booking.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShiftManagement implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String Id;
    private String StoreId;
    private String Name;
    private String ShiftTimeList;
    @TableField(exist = false)
    private int UsersNumber;
    @TableField(exist = false)
    private List<Staff> staffList = new ArrayList<>();
    @TableField(fill = FieldFill.INSERT)
    private Date CreateAt;
    @TableField(fill = FieldFill.DEFAULT)
    private Date UpdateAt;

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getStoreId() {
        return StoreId;
    }

    public void setStoreId(String storeId) {
        StoreId = storeId;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getShiftTimeList() {
        return ShiftTimeList;
    }

    public void setShiftTimeList(String shiftTimeList) {
        ShiftTimeList = shiftTimeList;
    }

    public int getUsersNumber() {
        return UsersNumber;
    }

    public void setUsersNumber(int usersNumber) {
        UsersNumber = usersNumber;
    }

    public List<Staff> getStaffList() {
        return staffList;
    }

    public void setStaffList(List<Staff> staffList) {
        this.staffList = staffList;
    }

    public Date getCreateAt() {
        return CreateAt;
    }

    public void setCreateAt(Date createAt) {
        CreateAt = createAt;
    }

    public Date getUpdateAt() {
        return UpdateAt;
    }

    public void setUpdateAt(Date updateAt) {
        UpdateAt = updateAt;
    }
}
